<div class="container" ng-controller="ProjectDatabaseCtrl">
    <div class="body">
        <div class="left">
            <ul>
                <li ng-repeat="operation in data.operationList">
                    <a href="{{operation.url}}" style="color:#fff;background:#1ebdff;text-decoration:none;" ng-if="operation.url == nowUrl">{{operation.name}}</a>
                    <a href="{{operation.url}}" ng-if="operation.url != nowUrl">{{operation.name}}</a>
                </li>
            </ul>
        </div>
        <div class="right">
            <form  role = "form" class = "form form-inline">
                <div class = "form-group">
                    <label class = "sr-only">用户名</label>
                    <input type = "text" class = " form-control" ng-model="data.search" placeholder = "姓名/昵称/企业名称/手机号码" id="inp">
                    <button class="btn btn-default" ng-click="searchBtn()" id="search">搜索</button>
                </div>
            </form>
            <div class="tendertime">
                <ul class="condition">
                    <li>
                        <div class="condition-left">
                            招标时间：
                            <a href="javascript:void(0)" class="allcondition">全部</a>
                        </div>
                        <div class="line"></div>
                        <div class="condition-right">
                            <a href="javascript:void(0)">最近一天</a>
                            <a href="javascript:void(0)">最近一周</a>
                            <a href="javascript:void(0)">最近一月</a>
                            <p class="input-group">
                                <input type="text" class="form-control" uib-datepicker-popup ng-model="dtstart" is-open="popup1.opened" datepicker-options="dateOptions" ng-required="true" close-text="Close" alt-input-formats="altInputFormats" />
                                <span class="input-group-btn">
                                    <button type="button" class="btn btn-default" ng-click="open1()"><i class="glyphicon glyphicon-calendar"></i></button>
                                </span>
                            </p>
                            <span>至</span>
                            <p class="input-group">
                                <input type="text" class="form-control" uib-datepicker-popup ng-model="dtend" is-open="popup2.opened" datepicker-options="dateOptions" ng-required="true" close-text="Close" />
                                <span class="input-group-btn">
                                    <button type="button" class="btn btn-default" ng-click="open2()"><i class="glyphicon glyphicon-calendar"></i></button>
                                </span>
                            </p>
                        </div>
                    </li>
                    <li>
                        <div class="condition-left">
                            中标地区：
                            <a href="javascript:void(0)" class="allcondition" ng-click="cityChange('-1')">全部</a>
                        </div>
                        <div class="line"></div>
                        <div class="condition-right">
                            <a href="javascript:void(0)" ng-repeat="city in cityList" ng-click="cityChange(city.cityID)">
                                <span ng-if="city.cityID == data.cityID" style="display:inline-block;background:#1ebdff;color:#fff;padding:0px 3px;">{{city.cityName}}</span>
                                <span ng-if="city.cityID != data.cityID">{{city.cityName}}</span>
                            </a>
                        </div>
                    </li>
                    <li>
                        <div class="condition-left">
                            项目类型：
                            <a href="javascript:void(0)" class="allcondition">全部</a>
                        </div>
                        <div class="line"></div>
                        <div class="condition-right">
                            <a href="javascript:void(0)">全部</a>
                        </div>
                    </li>
                    <li>
                        <div class="condition-left">
                            最高限价：
                            <a href="javascript:void(0)" class="allcondition">全部</a>
                        </div>
                        <div class="line"></div>
                        <div class="condition-right">
                            <a href="javascript:void(0)">全部</a>
                        </div>
                    </li>
                </ul>
            </div>
            <table class="table table-bordered table-striped">
                <tr>
                    <th>项目名称</th>
                    <th>项目时间</th>
                    <th>地区</th>
                    <th>查看详情</th>
                </tr>
                <tr ng-repeat="project in data.projectDatabsase">
                    <td width="55%"><a href="#/projectdatabasedetail">{{project.companyName}}</a></td>
                    <td width="15%">{{project.publishDate}}</td>
                    <td width="15%">{{project.place}}</td>
                    <td width="15%"><a ng-disabled="user.clickDisable" href="#/projectdatabasedetail/{{project.projectID}}" class="btn btn-default">查看详情</a></td>
                </tr>
            </table>
            <form  role = "form" style="float:right;margin-top:20px;">
                <div class = "form-group">
                    <label class = "sr-only">上一页</label>
                    <button class="btn btn-default" ng-disabled="data.prevDisable" ng-click="prevPageBtn()">上一页</button>
                    <label class = "sr-only">下一页</label>
                    <button class="btn btn-default" ng-disabled="data.nextDisable" ng-click="nextPageBtn()">下一页</button>
                    <label class = "sr-only">下拉列表</label>
                    <input type="number" min="1" style="width:50px;" ng-model="data.number"/>
                    <label class = "sr-only">确定</label>
                    <button class="btn btn-default" ng-click="btnClicked()">确定</button>
                </div>
            </form>
        </div>
    </div>
</div>